import { request, apiUrl } from '@/api/request';

/**
 * 手机验证码登录
 * @param {Object} params {phone: '', captcha: ''}
 * @returns 
 */
export function login(params) {
  return request(apiUrl.LOGIN_CELLPHONE, params);
}

/**
 * 发送验证码
 * @param {String} phone 
 * @returns 
 */
export function captchaSent(phone) {
  return request(`${apiUrl.CAPTCHA_SENT}?phone=${phone}`);
}